import {PageContainer} from "@ant-design/pro-layout";
import ProCard from "@ant-design/pro-card";
import {Input, AutoComplete} from 'antd';
import {AudioOutlined} from "@ant-design/icons";
import { history, Link } from 'umi';



export default () => {

  const {Search} = Input;
  const suffix = (
    <AudioOutlined
      style={{
        fontSize: 16,
        color: '#1890ff',
      }}
    />
  );




  const onSearch = value => {
    console.log(value);
    history.push({pathname:"/regi/search",query:{"query":value}})
  }

  return (
    <PageContainer
    >
      <ProCard  style={{"margin-bottom": "20px"}}>
        <h1 style={{"text-align": "center"}}>数字对象搜索引擎</h1>
        <Search
          placeholder="请输入关键字"
          allowClear
          enterButton="搜索"
          size="large"
          onSearch={onSearch}
        />
      </ProCard>

    </PageContainer>
  );
};
